// Mock数据统一导出
import tenantInfoMock from './tenantInfo'
import tenantMonitorMock from './tenantMonitor'
import chargeBillingMock from './chargeBilling'
import financialReconciliationMock from './financialReconciliation'
import chargeRecordMock from './chargeRecord'
import meterManagementMock from './meterManagement'
import operationRecordMock from './operationRecord'
import chargingSchemeMock from './chargingScheme'
import timingSchemeMock from './timingScheme'
import deviceReportMock from './deviceReport'

export {
  tenantInfoMock,
  tenantMonitorMock,
  chargeBillingMock,
  financialReconciliationMock,
  chargeRecordMock,
  meterManagementMock,
  operationRecordMock,
  chargingSchemeMock,
  timingSchemeMock,
  deviceReportMock
}

// 模拟API延迟
export const mockDelay = (data, delay = 500) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve(data)
    }, delay)
  })
}

// 统一响应格式
export const mockResponse = (data, message = '操作成功', code = 200) => {
  return {
    code,
    message,
    msg: data,
    success: code === 200
  }
}

